package com.my.mail3;


import com.my.mail3.biz.MailBiz;
import com.my.mail3.enums.MailContentTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/email3")
public class EmailController3 {

    @Autowired
    private MailBiz mailBiz;

    @GetMapping("sendMail")
    public void sendMail() {
        mailBiz.contentType(MailContentTypeEnum.TEXT)
                .title("测试")
                .to("13551883869@sina.cn")
                .content("测试content")
                .send();
    }
}
